'use strict';
const moment = require('moment')

module.exports = {
  up: async (queryInterface, Sequelize) => {
    await queryInterface.bulkInsert('user', [
      {
        id: 1,
        username: 'mt',
        password: '123456',
        disabled: false,
        mobile: '130000000000',
        email: 'mt@meishi.com',
        created_ip_at: '127.0.0.1',
        updated_ip_at: '127.0.0.1',
        created_at: moment().format('YYYY-MM-DD HH:dd:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:dd:ss')
      },
      {
        id: 2,
        username: 'mt2',
        password: '123456',
        disabled: false,
        mobile: '132000000000',
        email: 'mt@meishi2.com',
        created_ip_at: '127.0.0.1',
        updated_ip_at: '127.0.0.1',
        created_at: moment().format('YYYY-MM-DD HH:dd:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:dd:ss')
      },
      {
        id: 3,
        username: 'mt3',
        password: '123456',
        disabled: false,
        mobile: '133000000000',
        email: 'mt@meishi3.com',
        created_ip_at: '127.0.0.1',
        updated_ip_at: '127.0.0.1',
        created_at: moment().format('YYYY-MM-DD HH:dd:ss'),
        updated_at: moment().format('YYYY-MM-DD HH:dd:ss')
      }
    ], {});
  },

  down: async (queryInterface, Sequelize) => {
    await queryInterface.bulkDelete('user', null, {});
  }
};
